<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020-02-02
 * Time: 17:51
 */
exec("dir /B/S .. |findstr /lE .env",$out);
$dir=dirname($out[0]);
$cmd="cd $dir &&rm -rf tests/command/* && php artisan system:repo:maketest";
$out=[];
exec($cmd,$out);
print_r($out);